import request from '@/utils/request'
import qs from 'qs'
export function add(data) {
  return request({
    url: 'api/migJobRelate',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/migJobRelate/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/migJobRelate',
    method: 'put',
    data
  })
}
export function query(data = {}) {
  return request({
    url: 'api/migJobRelate?' + qs.stringify(data, { indices: false }),
    method: 'get'
  })
}

export function idMigrate(data = {}) {
  return request({
    url: '/api/migJobRelate/doMigrate?' + qs.stringify(data, { indices: false }),
    method: 'get'
  })
}

export default { add, edit, del, query, idMigrate }
